/**
 * Project oo_thread
 */


#include "MyTask.h"
#include <ctime>
#include <stdlib.h>
#include <iostream>
#include <unistd.h>
using std::endl;
using std::cout;

/**
 * MyTask implementation
 */


/**
 * @return void
 */
void MyTask::process() {
    static int tasknum = 1;
      srand(time(nullptr));
        int num = rand() % 100;
        cout << "do task times = " << tasknum << endl;
        tasknum++;
        sleep(1);
}
